package com.boonya.rmi.order.service;

import com.boonya.rmi.order.entity.Order;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * @ClassName: RMIServer
 * @Description: TODO(订单接口)
 * @author: pengjunlin
 * @motto: 学习需要毅力，那就秀毅力
 * @date 2021/4/21 15:28
 */
public interface IOrder extends Remote {

    /**
     * 根据id获取订单信息
     *
     * @param id
     * @return
     * @throws RemoteException
     */
    Order getOrder(Integer id) throws RemoteException;

}
